package com.example.servicetest;

import android.content.IntentSender;
import android.util.Log;

public class MyIntentService extends IntentSender {

    public MyIntentService{
        super();    //调用父类的有参构造函数
    }

    @Override
    protected void onHandleIntent(Intent intent){
        // 打印当前的线程 id
        Log.d("MyIntentService","Thread id is"+Thread.currentThread().getId());
    }

    @Override
    public void onDestroy(){
        super.onDestroy();
        Log.d("MyIntentService","onDestory executed");
    }

}
